// #ifndef VUE3
import Vue from "vue";
import App from "./App";

import config from "./config";
console.log("config", config);
Vue.prototype.$config = config;

// utils注入全局
import * as utils from "./plugins/utils";
Vue.prototype.$utils = utils;

// 请求注入全局
import request from "./plugins/request";
Vue.prototype.$request = request;

// storage注入全局
import storage from "./plugins/storage";
Vue.prototype.$storage = storage;

// store注入全局
import store from "./store";
Vue.prototype.$store = store;

// 引入常用mixins
import commonMixin from "./mixins/common";
Vue.mixin(commonMixin);

Vue.config.productionTip = false;

App.mpType = "app";

const app = new Vue({
  ...App,
});
app.$mount();
// #endif

// #ifdef VUE3
import { createSSRApp } from "vue";
import App from "./App.vue";
export function createApp() {
  const app = createSSRApp(App);
  return {
    app,
  };
}
// #endif
